<?php echo $html->css(array('datepicker')); ?>
<?php echo $javascript->link(array('jquery-1.4.2', 'jquery.jeditable', 'javaEdit', 'datepicker')); ?>
<script type="text/javascript">
$(document).ready(function(){
	// toggle the task form
	$('.task-toggle').click(function(){
		$('#TaskForm').toggle();
	});
	$('#TaskForm').hide();
});
</script>
<div class="timesheets form">
<?php echo $this->Form->create('Timesheet');?>
	<fieldset>
 		<legend><?php __('Add Timesheet'); ?></legend>
	<?php
                if($this->params['pass']==null){
		echo $this->Form->input('client_id');}
                else {
                    echo $this->Form->hidden('client_id', array('value' => $this->params['pass']['0']));}
                echo $this->Html->link(__('New Client', true), array('controller'=>'clients','action' => 'add/timesheet'));
                echo $this->Form->input('user_id');
		echo $this->Form->input('date');
		echo $this->Form->input('customer name');
                echo "&nbsp&nbsp<b>Type</b><br />";
                $options = array("Residential"=>"Residential", "Commercial"=>"Commercial");
		echo "&nbsp&nbsp".$this->Form->select('type', $options);
                echo "<br /><br />&nbsp&nbsp<b>Location</b><br />";
                $options2 = array("On-Site"=>"On-Site", "Remote"=>"Remote");
		echo "&nbsp&nbsp".$this->Form->select('location', $options2);
		echo $this->Form->input('start time');
		echo $this->Form->input('finish time');
		echo $this->Form->input('services provided', array('rows'=>'10', 'cols'=>'70'));
		echo $this->Form->input('hardware and software', array('rows'=>'10', 'cols'=>'70'));
		echo $this->Form->input('services cost');
		echo $this->Form->input('hardware cost');
		echo $this->Form->input('paid');
                echo $this->Form->input('status');
	?>
<?php echo $this->Form->end(__('Submit', true));?>
    <div class="right"><?php echo $this->Html->link(__('Back to Timesheets List', true), array('action' => 'index'));?></div>

</div>